package com.example.travel.mapper;

import com.example.travel.pojo.orm.Group;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GroupMapper {
    List<Group> getAllGroup();

    Group getGroupById(int groupId);

    int addGroup(Group group);

    int updateGroup(@Param("group") Group group);

    int deleteGroup(int groupId);
}
